-- GENERATED SPELL FOR [7th Legion Cavalier] --


function spell0_27161(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(19643,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27161', 5256, 1)
end

function spell1_27161(pUnit, Event) --@Snap Kick,n/a--
pUnit:FullCastSpellOnTarget(15618,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27161', 2262, 1)
end

function Sorts_27161(pUnit, Event)
local choix_sorts_27161 = math.random(0, 1)
if choix_sorts_27161 == 0 then
pUnit:RegisterEvent('spell0_27161', 1, 1)
end
if choix_sorts_27161 == 1 then
pUnit:RegisterEvent('spell1_27161', 1, 1)
end
end

function mob27161_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27161', math.random(1500, 3000), 1)
end

function mob27161_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27161_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27161_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27161, 1, 'mob27161_Action')
RegisterUnitEvent(27161, 2, 'mob27161_Leave')
RegisterUnitEvent(27161, 3, 'mob27161_Kill')
RegisterUnitEvent(27161, 4, 'mob27161_Die')
